home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3mpleve.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_MPLEVEL_H = 1;
- include("real/code/r3matprp.js")
-
-
- var R3CLID_MPLEVEL = 396;
-
-
-
-
- // Description: Enumerates defined local variables. The callback method is send as follows: R3SendMsgA3((R3OBJ *)p1, (R3INT)p2,
- // char *name, (R3INT)id, (void *)msg);
- // Virtual method
- // p1: Object, callback object
- // p2: Integer, callback method
- // p3: Object, user specific data
-
- R3MPLEVM__WAS_ENUMVARIABLES = 396000;
-
- function mR3MPLEVM__WAS_ENUMVARIABLES(p1, p2, p3) {
- DoA3(this.r3obj, 396000, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Create a new local variable for the shader
- // Virtual method
- // Returns: Integer, variable id unique in this shader
- // p1: String, name for the variable
- // p2: Integer, type id
- // p3: Integer, see codes below
-
- R3MPLEVM__WAS_NEWVARIABLE = 396001;
-
- function mR3MPLEVM__WAS_NEWVARIABLE(p1, p2, p3) {
- return DoA3(this.r3obj, 396001, p1, R3TID_STRING, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Delete local variable
- // Virtual method
- // Returns: Boolean, TRUE if found
-
- R3MPLEVM__WAS_DELVARIABLE = 396002;
-
- function mR3MPLEVM__WAS_DELVARIABLE() {
- return DoA(this.r3obj, 396002, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Rename local variable
- // Virtual method
- // Returns: Boolean, TRUE if found
-
- R3MPLEVM__WAS_RENAMEVARIABLE = 396003;
-
- function mR3MPLEVM__WAS_RENAMEVARIABLE() {
- return DoA(this.r3obj, 396003, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Change the type of local variable
- // Virtual method
- // Returns: Boolean, TRUE if found
- // p3: Integer, type id
-
- R3MPLEVM__WAS_SETVARIABLETYP = 396004;
-
- function mR3MPLEVM__WAS_SETVARIABLETYP(p3) {
- return DoA(this.r3obj, 396004, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Change the type of local variable
- // Virtual method
- // Returns: Integer, type id of the variable, or NULL if a variable with the given name
- // is not defined
-
- R3MPLEVM__WAS_GETVARIABLETYP = 396005;
-
- function mR3MPLEVM__WAS_GETVARIABLETYP() {
- return DoA(this.r3obj, 396005, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Enumerates defined local stack items. The callback method is sent as follows: R3Do3((R3OBJ *)p1,
- // (R3INT)p2, char *name, (R3INT)id, R3MPLEVA_StackCallDepth, depth, R3MATPRPA_OutputType, type, R3MATPRPA_OutputChannel, channel_clid, R3MATPRPA_OutputIdentifier, id, R3RA_HookData, context, R3TAG_END);
- // p1: Object, callback object
- // p2: Integer, callback method
- // p3: Tag[]
-
- R3MPLEVM_ENUMSTACKITEMS = 396006;
-
- function mR3MPLEVM_ENUMSTACKITEMS(p1, p2, p3) {
- Do3(this.r3obj, 396006, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Insert a shader under parent
- // Returns: Object, address of the shader object or NULL if failed
- // p1: Object, if not NULL insert child after this. if p1 == obj then insert child
- // as the 1st shader.
- // p3: Object, child shader
-
- R3MPLEVM_INSERTPROP = 396007;
-
- function mR3MPLEVM_INSERTPROP(p1, p3) {
- return R3ToJS( DoA2(this.r3obj, 396007, p1, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0));
- }
-
- // Description: callback method for R3MATPRPCA_SetParentXxx.
- // p1: Object, old parent
- // p2: Object, new parent
- // p3: Object, child whose parent is to be changed.
-
- R3MPLEVCM_SETPARENT = 396008;
-
- function mR3MPLEVCM_SETPARENT(p1, p2, p3) {
- DoA3(this.r3obj, 396008, p1, R3TID_OBJECT, 0, p2, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Insert new object after the given node
- // Returns: Boolean, true of node was found
- // p1: Boolean, don't send childchanged method
- // p2: Object, previous object
- // p3: Object, object to be inserted
-
- R3MPLEVM_INSERT = 396009;
-
- function mR3MPLEVM_INSERT(p1, p2, p3) {
- return DoA3(this.r3obj, 396009, p1, R3TID_BOOLEAN, 0, p2, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Insert given object to the head of the children list
- // p1: Boolean, don't send childchanged method
- // p3: Object, object to be inserted
-
- R3MPLEVM_ADDHEAD = 396010;
-
- function mR3MPLEVM_ADDHEAD(p1, p3) {
- DoA2(this.r3obj, 396010, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Inserts new sub object at the head of the children list
- // p1: Boolean, don't send childchanged method
- // p3: Object, address of the object to be inserted
-
- R3MPLEVM_ADDTAIL = 396011;
-
- function mR3MPLEVM_ADDTAIL(p1, p3) {
- DoA2(this.r3obj, 396011, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Remove the given children from the children list
- // p3: Object, sub object to be removed
-
- R3MPLEVM_REMOVE = 396012;
-
- function mR3MPLEVM_REMOVE(p3) {
- DoA(this.r3obj, 396012, p3, R3TID_OBJECT, 0);
- }
-
-
-
-
- R3MPLEVA_Children = 396500;
- function GetR3MPLEVA_Children() {
- return R3Get(this.r3obj, R3MPLEVA_Children, R3TID_LIST, R3TNF_ARRAY);
- }
-
- R3MPLEVA_Variables = 396501;
- function SetR3MPLEVA_Variables(value) {
- R3Set(this.r3obj, R3MPLEVA_Variables, value, R3TID_LIST, 0);
- }
-
- R3MPLEVA_StackTotalCount = 396502;
- function GetR3MPLEVA_StackTotalCount() {
- return R3Get(this.r3obj, R3MPLEVA_StackTotalCount, R3TID_INTEGER, 0);
- }
-
- var R3MPLEVA_StackCallDepth = 396503; // Integer
- R3MPLEVA_StackLocalCount = 396504;
- function GetR3MPLEVA_StackLocalCount() {
- return R3Get(this.r3obj, R3MPLEVA_StackLocalCount, R3TID_INTEGER, 0);
- }
-
- R3MPLEVA_Open = 396505;
- function SetR3MPLEVA_Open(value) {
- R3Set(this.r3obj, R3MPLEVA_Open, value, R3TID_INTEGER, 0);
- }
-
- function GetR3MPLEVA_Open() {
- return R3Get(this.r3obj, R3MPLEVA_Open, R3TID_INTEGER, 0);
- }
-
- var R3MPVAR_STATIC = 0;
- var R3MPVAR_AUTO = 1;
-
-
- function r3Mplevel () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_MPLEVEL, arguments);
- }
- // Methods
- this._WAS_ENUMVARIABLES=mR3MPLEVM__WAS_ENUMVARIABLES;
- this._WAS_NEWVARIABLE=mR3MPLEVM__WAS_NEWVARIABLE;
- this._WAS_DELVARIABLE=mR3MPLEVM__WAS_DELVARIABLE;
- this._WAS_RENAMEVARIABLE=mR3MPLEVM__WAS_RENAMEVARIABLE;
- this._WAS_SETVARIABLETYP=mR3MPLEVM__WAS_SETVARIABLETYP;
- this._WAS_GETVARIABLETYP=mR3MPLEVM__WAS_GETVARIABLETYP;
- this.ENUMSTACKITEMS=mR3MPLEVM_ENUMSTACKITEMS;
- this.INSERTPROP=mR3MPLEVM_INSERTPROP;
- this.SETPARENT=mR3MPLEVCM_SETPARENT;
- this.INSERT=mR3MPLEVM_INSERT;
- this.ADDHEAD=mR3MPLEVM_ADDHEAD;
- this.ADDTAIL=mR3MPLEVM_ADDTAIL;
- this.REMOVE=mR3MPLEVM_REMOVE;
-
- // Attributes
- this.GetChildren=GetR3MPLEVA_Children;
- this.SetVariables=SetR3MPLEVA_Variables;
- this.GetStackTotalCount=GetR3MPLEVA_StackTotalCount;
- this.GetStackLocalCount=GetR3MPLEVA_StackLocalCount;
- this.GetOpen=GetR3MPLEVA_Open;
- this.SetOpen=SetR3MPLEVA_Open;
- }
-
- r3Mplevel.prototype=new r3Matprop;
- // r3mpleve.h_H